package com.lenovo.manufacture.module;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.lenovo.manufacture.BaseActivity;
import com.lenovo.manufacture.R;
import com.lenovo.manufacture.annotation.Layout;

import java.text.SimpleDateFormat;
import java.util.Date;

import butterknife.BindView;
import butterknife.ButterKnife;

public class Module10_1 extends BaseActivity {

    @BindView(R.id.textView4)
    TextView textView4;
    @BindView(R.id.textView5)
    TextView textView5;
    @BindView(R.id.textView6)
    TextView textView6;

    @Layout(value = R.layout.activity_module10_1, title = "资讯详情")
    protected void init() {
        Intent intent = getIntent();
        String title = intent.getStringExtra("name");
        textView4.setText(title);
        String word = intent.getStringExtra("word");
        textView6.setText(word);
        int time = intent.getIntExtra("time", 0);
        String s = simpleDateFormat.format(new Date(((long) time) * 1000));
        textView5.setText(s);
    }
}